﻿<UserControl x:Class="SilverlightDynamicJson.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">

    <Grid x:Name="LayoutRoot" Background="White">
      <Grid.RowDefinitions>
         <RowDefinition Height="32"/>
         <RowDefinition Height="*"/>
      </Grid.RowDefinitions>
      <Button Grid.Row="0" Margin="4"  Content="Change" Click="Change"/>
      <ListBox Grid.Row="1"  x:Name="LB">
         <ListBox.ItemTemplate>
            <DataTemplate>
               <Grid>
                  <Grid.ColumnDefinitions>
                     <ColumnDefinition Width="100"/>
                     <ColumnDefinition Width="100"/>
                     <ColumnDefinition Width="100"/>
                  </Grid.ColumnDefinitions>
                  <TextBlock Grid.Column="0" Text="{Binding ISBN}"/>
                  <TextBlock Grid.Column="1" Text="{Binding Title}"/>
                  <TextBlock Grid.Column="2" Text="{Binding Author}"/>
               </Grid>
            </DataTemplate>
         </ListBox.ItemTemplate>
      </ListBox>
    </Grid>
</UserControl>
